﻿var status = 0;

var tz3 = "#fEffect/CharacterEff/1082588/0/0#"; //红点
var tz4 = "#fEffect/CharacterEff/1082588/3/0#"; //蓝点
var 万能 = "#fItem/Etc/0400.img/04009388/info/iconRaw#";//迷你女皇
var 赞助= "#fItem/Etc/0400.img/04009391/info/iconRaw#";//迷你女皇
function start() {
	status = -1;
	action(1, 0, 0);
}

function action(mode, type, selection) {
	if (status == 0 && mode == 0) {
		cm.dispose();
		return;
	}
	if (mode == 1) {
		status++;
	} else {
		status--;
	}
	if (status == 0) {
		var selStr = "";
		selStr += " #e#rPPMS神秘徽章·领取·制作·强化\r\n\r\n#l";
		selStr += " #d#n1.200级可以领取一枚#v1712000#\r\b 2.其余地区的神秘徽章根据神秘河地区的怪物掉落物品制作\r\n 3.每种神秘徽章都可免费使用PPMS微积分加PPMS活跃值升级\r\n";		
		selStr += "#b#e#L1#"+ "领取神秘徽章#l";
		selStr += "  #g#L3#" +"制作神秘徽章#l";		
		selStr += "  #r#L2#"+ "神秘徽章强化#k#l\r\n";
		cm.sendSimpleS(selStr, 2);
	} else if (status == 1) {
		switch (selection) {
		case 1:
			cm.dispose();
			cm.openNpc(2140001, "神秘徽章领取");
			break;
		case 2:
			cm.dispose();
			cm.openNpc(2140001, "神秘徽章升级");
			break;
		case 3:
			cm.dispose();
			cm.openNpc(2140001, "神秘徽章制作表");
			break;			
		default:
			cm.sendOk("该功能正在紧张进行制作中，请耐心等待。");
			cm.dispose();
			break;
		}
	}
}
